﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CfgParas.ascx.cs" Inherits="Lenovo.CFI.Web.VP.CfgParas" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="detail.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccAc" runat="server" CssPath="VP/autocomplete.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/cfg/cfgparas.css"></tbwc:StyleSheetControl>

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" >
    <Services>
        <asp:ServiceReference  Path="~/WS/AjaxUser.asmx" />
    </Services>
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
        <asp:ScriptReference Path="~/js/jquery.autocomplete.js" />
    </Scripts>
</ajaxToolkit:ToolkitScriptManager>

<div class="wrapper">

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <tbwc:Fieldset ID="FsReviewer" runat="server" DesignWidth="1240px" CssClass="reviewers" GroupingText="Default Reviewers">
        <div class="line"><tbwc:UserAutoComplete 
                ID="UacReviewers" runat="server" CssClass="maillist" MaxCount="80"
                AcServiceUrl="WS/AjaxUserAc.aspx"
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes" /></div>
    </tbwc:Fieldset>

    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSaveReviewer" runat="server" CssClass="primary" Text="Upate" 
            onclick="BtnSaveReviewer_Click" />
    </div>
        </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <tbwc:Fieldset ID="FsDcAndIp" runat="server" DesignWidth="1240px" CssClass="dcip" GroupingText="Default DC and IPs">
        <asp:Repeater ID="RepDcAndIp" runat="server" 
            onitemdatabound="RepDcAndIp_ItemDataBound">
            <ItemTemplate>
            <div class="line"><asp:Label ID="LblDcOwner" runat="server" AssociatedControlID="OuacDcOwner" Text="xxx Owner:" CssClass="title"></asp:Label><tbwc:OneUserAutoComplete
                ID="OuacDcOwner" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete><span class="hint"><asp:RequiredFieldValidator
                ID="RfvOuacDcOwner" runat="server" ControlToValidate="OuacDcOwner" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span>
                <input ID="HiDcType" type="hidden" runat="server" /></div>
            </ItemTemplate>
        </asp:Repeater>

        <div class="line"><asp:Label ID="LblIpOwner" runat="server" AssociatedControlID="OuacIpOwner" Text="IP Owner:" CssClass="title"></asp:Label><tbwc:OneUserAutoComplete
            ID="OuacIpOwner" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
            CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete><span class="hint"><asp:RequiredFieldValidator
            ID="RfvOuacIpOwner" runat="server" ControlToValidate="OuacIpOwner" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>
    </tbwc:Fieldset>

    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSaveDcIp" runat="server" CssClass="primary" Text="Upate" 
            onclick="BtnSaveDcIp_Click" />
    </div>
        </ContentTemplate>
</asp:UpdatePanel>

    <tbwc:Fieldset ID="FsCfiTemplate" runat="server" DesignWidth="1240px" CssClass="file" GroupingText="CFI Template">
        <div class="line"><asp:Label ID="LblCfiFile" runat="server" AssociatedControlID="FuCfiFile" Text="File:" CssClass="title"></asp:Label><asp:FileUpload
            ID="FuCfiFile" runat="server" Width="30em" /></div>
    </tbwc:Fieldset>

    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSaveCfiFile" runat="server" CssClass="primary" Text="Upate" 
            onclick="BtnSaveCfiFile_Click" />
    </div>

    <tbwc:Fieldset ID="FsCsTemplate" runat="server" DesignWidth="1240px" CssClass="file" GroupingText="C Suggestion Template">
        <div class="line"><asp:Label ID="LblCsFile" runat="server" AssociatedControlID="FuCsFile" Text="File:" CssClass="title"></asp:Label><asp:FileUpload
            ID="FuCsFile" runat="server" Width="30em" /></div>
    </tbwc:Fieldset>

    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSaveCsFile" runat="server" CssClass="primary" Text="Upate" 
            onclick="BtnSaveCsFile_Click" />
    </div>

</div>